﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows.Input;
using Microsoft.Kinect;
using System.Windows;
using Imaging;
using Microsoft.Samples.Kinect.WpfViewers;
using KinectDwa.Parsers.Helpers;
using KinectApplication;
using System.Windows.Media;

namespace KinectDwa.InputDevices
{
    public static class DirectMouseInput
    {

        // Event received from some parser
        public static void InputEvent(HandInfo info)
        {
            TommisMouseEmulator.Position = new System.Drawing.Point(info.ScaledX, info.ScaledY);

            //debugging info, ShowHand seems to crash, why is that..
            // KinectHandViewer.ShowHand(handArray, floodFiller.Width2, floodFiller.Height2);

            
            Debugging.ShowPoint(info.X, info.Y, Colors.Aquamarine);
            Debugging.ShowPoint(info.SkeletonX, info.SkeletonY, Colors.Red);



        }
    }
}
